<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>



<isperp:grid url="sparepart/sparepartBack/listDetail"
	gridId="sparepartBackGrid" processKey="sparepartBackProcess"
	cusDeleteUrl="sparepart/sparepartBack/delete"
	ondbClickRowEvent="sparepartBackGrid.edit(rowid);" cusDialogSize="big">
	<jsp:attribute name="toolbar">

	<isperp:treeMenu id="sparepartBackMenu"
			targetGridId="sparepartBackGrid">
		<isperp:async enable="true" url="sparepart/sparepartBack/processMenu"></isperp:async>
		<isperp:callback onClick="sparepartBackMenuTree_onNodeClick"
				onAsyncSuccess="sparepartBackMenuTree_onNodeClickFirst();">
		</isperp:callback>
	</isperp:treeMenu>
	<isperp:toolbar id="userToolbar">
		<isperp:button id="userCeate" icon="icon-plus" text="备件归还申请"
				cssClass="nui-mainbtn" onclick="sparepartBackGrid.create();"></isperp:button>
	</isperp:toolbar>
	</jsp:attribute>
	<jsp:attribute name="searchbar">
	<table class="search-table">
		<tbody>
			<tr>
				<td align="right">编号：</td>
				<td><input type="text" field="code" op="cn">
					</td>
				<td align="right">描述：</td>
				<td><input type="text" field="memo" op="cn">
					</td>
				<td align="right">归还人：</td>
				<td><input type="text" field="back_man_name" op="cn">
					</td>
			</tr>

			<tr>
				<td align="right">项目：</td>
				<td><form:select path="projects" field="project_id" op="cn"
							data-allow-empty="true" items="${projects}" itemLabel="name"
							itemValue="id" cssClass="search" />
				
					
					
					
					
					<td align="right">归还时间：</td>
				<td colspan="3"><input id="backDateStart" type="date"
						field="back_date" op="gt" style="width: 68px" />~<input
						id="backDateEnd" type="date" field="back_date" op="lt"
						style="width: 68px" />
					</td>

			</tr>
		</tbody>
	</table>
	</jsp:attribute>
	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="code" title="编号" width="100">
	</isperp:column>
	<isperp:column name="memo" title="描述" width="180">
	</isperp:column>
	<isperp:column name="back_man_name" title="归还人" width="80">
	</isperp:column>
	<isperp:column name="project_name" title="项目" width="150">
	</isperp:column>
	<isperp:column name="back_date" title="归还时间" width="100">
 	</isperp:column>
 	<isperp:column name="status" title="状态" width="80">
	</isperp:column>
	</jsp:body>
</isperp:grid>

<isperp:operate code="SPT_RETURN"></isperp:operate>
